/*
 * @Author: Ryan Huang
 * @Date: 2019-04-08 20:55:51
 * @Description:正则表达式
 */
package main

import (
	"fmt"
	"regexp"
)

func main() {
	reg := regexp.MustCompile("a*")
	match := reg.MatchString("")
	fmt.Println(match)
	s := regexp.MustCompile(`a*`).Split("abaabaccadaaae", 7) //abaabadcadaaae
	fmt.Println(s)
}
